//2009/08/16 17:33:06
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <sstream>
#include <algorithm>

using namespace std;

class Grader
{
public:
    vector <int> grade(vector <int> pre, vector <int> act)
    {
		vector<int> v(7,0);
		for(int i=0; i<pre.size(); i++)
		{
			v[abs(act[i] - pre[i])] ++;
		}
		for(int i=0; i<v.size(); i++)
		{
			if(v[i] > 0)
			{
				v[i] = (int)(v[i] * 100 / pre.size());
			}
		}
		return v;
    }
};
